package com.hzdl.house_mgr.controller;

import com.hzdl.house_mgr.bean.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.websocket.Session;

@Controller
@RequestMapping("chat")
public class ChatController {

    @RequestMapping("chatMgr")
    public String menuMgr(Model model,  HttpSession session){
        User user = (User)session.getAttribute("session_user");
        model.addAttribute("user",user);
        return "client/chatTest";
    }
}
